Skip to content

feat: add HTTP serve subcommand to quasi-bridge#807

Open
hiq-lab wants to merge 1 commit into
mainfrom
feat/bridge-http-serve
Open

feat: add HTTP serve subcommand to quasi-bridge#807
hiq-lab wants to merge 1 commit into
mainfrom
feat/bridge-http-serve

Conversation

@hiq-lab
Copy link
Copy Markdown
Collaborator

@hiq-lab hiq-lab commented Apr 13, 2026

Summary

  • Adds quasi-bridge serve --bind 0.0.0.0:9090 subcommand with axum HTTP server
  • Three endpoints: POST /run (full pipeline), POST /analyze (RHF + partition), GET /health
  • Heavy linear algebra dispatched to spawn_blocking to keep event loop free
  • Required for Garm Platform integration on Camelot (Hetzner VPS)

Tested

  • H₂: -1.1373 Ha (exact FCI/STO-3G match)
  • H₂O analyze: 7 basis functions, 14 qubits, RHF -74.989 Ha
  • H₂O run with n_active=2: instant response
  • Health endpoint: uptime + request counter
  • 453 workspace tests pass (0 failures)

Test plan

  • cargo test --workspace — 453 passed
  • Manual HTTP smoke test (health, analyze, run)
  • Release build verified

🤖 Generated with Claude Code

Adds axum-based HTTP server with three endpoints:
  POST /run     — full SMILES → energy pipeline
  POST /analyze — RHF + partition analysis only
  GET  /health  — liveness with uptime + request count

Heavy linear algebra runs on spawn_blocking to keep the
event loop responsive. All 453 workspace tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant